package com.brsya.movie.model;

import com.brsya.base.base.Contents;
import com.brsya.base.bean.BaseListBean;
import com.brsya.base.bean.InventoryBean;
import com.brsya.base.net.RetrofitClient;
import com.brsya.movie.contract.InventoryContract;

import java.util.Map;

import io.reactivex.rxjava3.core.Observable;

/**
 * Created by Brsya
 * CreateDate: 2022/7/7  9:33
 * Description:
 * 片单数据层
 */
public class InventoryModel implements InventoryContract.Model {
    @Override
    public Observable<BaseListBean<InventoryBean>> getInventory(Map<String, Object> par) {
        return RetrofitClient.getInstance().getApi().getInventory(Contents.BASE_URL + "/find/sheet", par);
    }
}
